home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util2 / hexdump.lha / hexdump / hd.man < prev    next >
Text File  |  1995-11-11  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. HD(1)                    USER COMMANDS                      HD(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      hd - hexadecimal dump
  10.  
  11. SYNOPSIS
  12.      hd [ -cnov ] [ -b n ] [ -sp  -sn n ] [ -sb n ] [  -eb  n  ]
  13.      filename
  14.  
  15. DESCRIPTION
  16.      hd produces a hex dump of the specified  file  or  the  data
  17.      that is piped into it from the standard input.
  18.  
  19.      The format of the dump is basically hex values on the  left,
  20.      in groups of 16 and corresponding ascii values on the right.
  21.      Only printable ascii values are printed as  themselves,  all
  22.      other ascii values are output as fullstops.
  23.  
  24.      There are various options to hd which allow further  format-
  25.      ting  of  the  output, and control over the start and end of
  26.      the output.
  27.  
  28.      Note that byte counting starts from 0; record (block) count-
  29.      ing  starts  from 1, after the start position which has been
  30.      given (if any).
  31.  
  32.      Options:
  33.  
  34.      -b n (block size): sets the block size to n (where n may  be
  35.           a  decimal  or C standard hexadecimal or octal number).
  36.           Ommision of this option will cause a continuous  stream
  37.           of output with no breaks unless the -n option is used.
  38.  
  39.      -c   (compress): compresses similar lines to a single  char,
  40.           *.  The  complete  line just before the first char is
  41.           the one which is repeated. This does  not  cross  block
  42.           boundaries.
  43.  
  44.      -n   (numbering): enables block numbering, each  block  will
  45.           be  labelled  giving  its  number from the start of the
  46.           file or the start block. The final  block  printed  has
  47.           its size printed also, if it is less than the specified
  48.           or default block size.   Used  without  the  -b  option
  49.           causes 1024 byte blocks to be output.
  50.  
  51.      -o   (offset): prints the offset within the file on the very
  52.           left hand side of the output.
  53.  
  54.      -sp n
  55.           (start posn, print): this causes any  blocking  options
  56.           that  have  been specified to start after the n'th byte
  57.           in the file, the first n bytes are printed in one  con-
  58.           tinuous block. This option takes precedence over -sn.
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.1     Last change: JUNE 2, 1989                   1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. HD(1)                    USER COMMANDS                      HD(1)
  71.  
  72.  
  73.  
  74.      -sn n
  75.           (start posn, no print): output will  commence  starting
  76.           after  the  n'th  byte,  the  first  n  bytes not being
  77.           printed.  n may be a decimal or C standard  hexadecimal
  78.           or  octal number, and is held as a long to allow start-
  79.           ing deep in a file.
  80.  
  81.      -v   (version): print the version number of hd.
  82.  
  83.      -sb n
  84.           (start block) output will commence starting  after  the
  85.           n'th block in the file.
  86.  
  87.      -eb n
  88.           (end block) output will cease after the n'th  block  in
  89.           the file.
  90.  
  91. AUTHOR
  92.      Peter Ruczynski
  93.  
  94. FUTURE ENHANCEMENTS
  95.      Offset printing in different bases, currently only in  hexa-
  96.      decimal.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sun Release 4.1     Last change: JUNE 2, 1989                   2
  130.  
  131.  
  132.  
  133.